﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KingerRobot.PCRBW.Dao;

partial class Db : K8.EF.DbContext
{
    /// <summary>
    ///备份钢圈产完批次
    /// </summary>
    public DbSet<BakMesProduct> BakMesProducts { get; set; }
}

/// <summary>
/// 备份钢圈产完批次
/// 表[bak_mes_product]
/// </summary>
[Table("bak_mes_product")]
public class BakMesProduct
{
    /// <summary>
    /// 主键
    /// </summary>
    [Key]
    [Column("Id")]
    public string Id { get; set; }
    /// <summary>
    /// 生产设备编号
    /// </summary>
    [Column("equip_name")]
    public string EquipName { get; set; }
    /// <summary>
    /// 1：设备产出；2：余料回库
    /// </summary>
    [Column("source_type")]
    public string SourceType { get; set; }
    /// <summary>
    /// 批次号码
    /// </summary>
    [Column("batch_name")]
    public string BatchName { get; set; }
    /// <summary>
    ///0：新增；1：执行中；2：库内；3：出库完成；4:桁架任务完成;11:订单锁定，12、人工清理，13、系统清理
    /// </summary>
    [Column("exec_status")]
    public int? Status { get; set; }
    /// <summary>
    /// RFID
    /// </summary>
    [Column("RFID")]
    public string RFID { get; set; }
    /// <summary>
    /// 物料编码
    /// </summary>
    [Column("part_number")]
    public string PartNumber { get; set; }
    /// <summary>
    /// 重量或数量
    /// </summary>
    [Column("in_quantity")]
    public decimal? Quantity { get; set; }
    /// <summary>
    /// 生产时间
    /// </summary>
    [Column("produce_time")]
    public DateTime? ProduceTime { get; set; }

    /// <summary>
    /// 0:解锁1:锁定
    /// </summary>
    [Column("pass_flag")]
    public string PassFlag { get; set; }
    /// <summary>
    /// 创建时间
    /// </summary>
    [Column("create_time")]
    public DateTime? CreateTime { get; set; }
    /// <summary>
    /// 创建任
    /// </summary>
    [Column("create_user")]
    public string CreateUser { get; set; }
    /// <summary>
    /// 仓库Id
    /// </summary>
    [Column("warehouse_id")]
    public long? WarehouseId { get; set; }
    /// <summary>
    /// 创建进库时间
    /// </summary>
    [Column("in_time")]
    public DateTime? InTime { get; set; }
    /// <summary>
    /// 创建龙门出库时间
    /// </summary>
    [Column("out_time")]
    public DateTime? OutTime { get; set; }
    /// <summary>
    /// 出库主键
    /// </summary>
    [Column("out_orderId")]
    public string OutOrderId { get; set; }

    /// <summary>
    /// 更新时间
    /// </summary>
    [Column("update_time")]
    public DateTime? UpdateTime { get; set; }

    /// <summary>
    /// 更新人
    /// </summary>
    [Column("update_user")]
    public string UpdateUser { get; set; }
    /// <summary>
    /// 备注
    /// </summary>
    [Column("remarks")]
    public string Remarks { get; set; }
    /// <summary>
    /// 更新标志：1：新增；2：删除；0：复位；
    /// </summary>
    [Column("update_flag")]
    public int? UpdateFlag { get; set; }
    /// <summary>
    /// 成型物料编号
    /// </summary>
    [Column("mpart_number")]
    public string MPartNumber { get; set; }
    /// <summary>
    /// 成型物料版本
    /// </summary>
    [Column("mpart_revision")]
    public string MPartRevision { get; set; }
    /// <summary>
    /// 仓库号
    /// </summary>
    [Column("storage_no")]
    public string StorageNo { get; set; }
    /// <summary>
    /// 跟踪号
    /// </summary>
    [Column("trace_code")]
    public string TraceCode { get; set; }
    /// <summary>
    /// 物料描述
    /// </summary>
    [Column("material_desc")]
    public string MaterialDesc { get; set; }
    /// <summary>
    /// 车次
    /// </summary>
    [Column("lot_no")]
    public string LotNo { get; set; }
    /// <summary>
    /// 班次
    /// </summary>
    [Column("shift_value")]
    public string ShiftValue { get; set; }
    /// <summary>
    /// 班组
    /// </summary>
    [Column("class_value")]
    public string ClassValue { get; set; }
    /// <summary>
    /// 有效期
    /// </summary>
    [Column("expiration_time")]
    public DateTime? ExpriationTime { get; set; }
    /// <summary>
    /// 钢丝圈尺寸
    /// </summary>
    [Column("innerdiameter")]
    public decimal? innerdiameter { get; set; }
}
